package com.withoutwords.ui;

import com.withoutwords.R;
import com.withoutwords.engine.GameController;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class EndGameActivity extends BaseActivity implements OnClickListener {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.endgame);

		
		Button btn = (Button) findViewById(R.id.btnShareScores);
		btn.setOnClickListener(this);
		btn = (Button) findViewById(R.id.btnContinue);
		btn.setOnClickListener(this);
		btn = (Button) findViewById(R.id.btnMain);
		btn.setOnClickListener(this);
		

	}
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnShareScores: {
			break;
		}
		case R.id.btnMain: {
			finish();
			break;
		}
		case R.id.btnContinue: {
			startActivity(new Intent(this.getApplicationContext(),StartRoundActivity.class));
			finish();
			break;
		}
		}

	}
}
